package com.zxjlib.core.base.response;

public class BaseAbstractResult {

    public final static String ERROR   = "ERROR";
    public final static String SUCCESS = "SUCCESS";
    public final static String FAILURE = "FAILURE";

    private String             code    = SUCCESS;
    private String             result  = "操作成功";

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public void setCodeResult(String code, String result) {
        this.code = code;
        this.result = result;
    }

    public boolean isSuccess() {
        if (SUCCESS.equals(getCode())) {
            return true;
        }
        return false;
    }
}
